package com.ekingstar.framework.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.opensymphony.xwork2.util.Element;


/**
 * AbstractFunction entity provides the base persistence definition of the Function entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractFunction  implements java.io.Serializable {


    // Fields    
	 private Function parent;
     public Function getParent() {
		return parent;
	}
    private List childen = new ArrayList(); 
	public List getChilden() {
		return childen;
	}

	//
	private List roles;
	public List getRoles() {
		return roles;
	}

	public void setRoles(List roles) {
		this.roles = roles;
	}

	public void setChilden(List childen) {
		this.childen = childen;
	}

	public void setParent(Function parent) {
		this.parent = parent;
	}

	 private String id;
     private String name;
     private String addresss;
     private Date lastUpdateDate;
     private String updaterId;
     private Date addDate;
     private String adderId;
     private String deleterId;
     private Date deleteDate;
     private Set TRoleFunctions = new HashSet(0);
     //add new field
     @Element(FunctionField.class)
     private List fields = new ArrayList(0);
     private String functionCode;
     private Boolean leaf;
     private Boolean show = true;
     private Boolean filter;
     @Element(FunctionParameter.class)
     private List params = new ArrayList();
     public List getParams() {
		return params;
	}

	public void setParams(List params) {
		this.params = params;
	}

	public List getFields() {
		return fields;
	}

	public void setFields(List fields) {
		this.fields = fields;
	}
	private Float orderNum;
   

	

	public String getFunctionCode() {
		return functionCode;
	}

	public void setFunctionCode(String functionCode) {
		this.functionCode = functionCode;
	}

	public Boolean getLeaf() {
		return leaf;
	}

	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}

	public Boolean getShow() {
		return show;
	}

	public void setShow(Boolean show) {
		this.show = show;
	}

	public Boolean getFilter() {
		return filter;
	}

	public void setFilter(Boolean filter) {
		this.filter = filter;
	}

	public Float getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Float orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getFunctionType() {
		return functionType;
	}

	public void setFunctionType(Integer functionType) {
		this.functionType = functionType;
	}

	public Integer getGeneratedCount() {
		return generatedCount;
	}

	public void setGeneratedCount(Integer generatedCount) {
		this.generatedCount = generatedCount;
	}
	private Integer functionType;
     private Integer generatedCount;

    // Constructors

    /** default constructor */
    public AbstractFunction() {
    }

	/** minimal constructor */
    public AbstractFunction(String id) {
        this.id = id;
    }
    
    /** full constructor */
    public AbstractFunction(String id, String name, String addresss, Date lastUpdateDate, String updaterId, Date addDate, String adderId, String deleterId, Date deleteDate, Set TRoleFunctions) {
        this.id = id;
        this.name = name;
        this.addresss = addresss;
        this.lastUpdateDate = lastUpdateDate;
        this.updaterId = updaterId;
        this.addDate = addDate;
        this.adderId = adderId;
        this.deleterId = deleterId;
        this.deleteDate = deleteDate;
        this.TRoleFunctions = TRoleFunctions;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getAddresss() {
        return this.addresss;
    }
    
    public void setAddresss(String addresss) {
        this.addresss = addresss;
    }

    public Date getLastUpdateDate() {
        return this.lastUpdateDate;
    }
    
    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public String getUpdaterId() {
        return this.updaterId;
    }
    
    public void setUpdaterId(String updaterId) {
        this.updaterId = updaterId;
    }

    public Date getAddDate() {
        return this.addDate;
    }
    
    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public String getAdderId() {
        return this.adderId;
    }
    
    public void setAdderId(String adderId) {
        this.adderId = adderId;
    }

    public String getDeleterId() {
        return this.deleterId;
    }
    
    public void setDeleterId(String deleterId) {
        this.deleterId = deleterId;
    }

    public Date getDeleteDate() {
        return this.deleteDate;
    }
    
    public void setDeleteDate(Date deleteDate) {
        this.deleteDate = deleteDate;
    }

    public Set getTRoleFunctions() {
        return this.TRoleFunctions;
    }
    
    public void setTRoleFunctions(Set TRoleFunctions) {
        this.TRoleFunctions = TRoleFunctions;
    }
   








}